package com.onegroup.common.exception;

import com.onegroup.common.enums.ResponseStatusEnum;
import lombok.Getter;

/**
 * @author: 曾雪斌
 * @Description:
 * @History:
 */
@Getter
public class MyCustomException extends RuntimeException {

    private final ResponseStatusEnum responseStatusEnum;

    public MyCustomException(ResponseStatusEnum responseStatusEnum) {
        super(responseStatusEnum.getMsg());
        this.responseStatusEnum = responseStatusEnum;
    }

}
